package com.example.front.controller;

import com.example.api.pojo.BaseInfo;
import com.example.front.view.RespResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author cjk
 * @Date 2024 07 23 20 01
 **/
@Api(tags={"平台信息接口"})
@RestController
@RequestMapping("/v1")
public class PlatInfoController extends BaseController{

    @ApiOperation(value = "平台基本信息",notes = "平均利率、注册人数、交易金额")
    /**平台基本信息*/
    @GetMapping("/plat/info")
    public RespResult queryPlatBaseInfo(){
        BaseInfo baseInfo = platBaseInfoService.queryPlatBaseInfo();
        RespResult result = new RespResult(200, "成功", baseInfo);
        return result;
    }
}
